<template>
    <view class="container">
      <view class="card">
        <view style="height: 10px;"></view>
        <view style="width: 90%;margin-left: 5%;">
            <view style="height: 10rpx;"></view>
            <u-line color="#E3EDE2"></u-line>
            <view style="height: 10rpx;"></view>
            <view v-for="(item, index) in arr" :key="index" @click="read(item)">
                <view style="display: flex;justify-content: space-between;margin-bottom: 10rpx;align-items: center;font-size: 17px;font-weight: 500;">
                    <view>{{ item.paperName }}</view>
                    <view>
                      <image style="width: 50rpx;height: 50rpx;" src="https://28-1325662301.cos.ap-shanghai.myqcloud.com/%E9%9D%92%E5%B2%9B%E5%B0%8F%E7%A8%8B%E5%BA%8F%2FGroup%202367.png" />
                    </view>
                </view>
            </view>
        </view>
        <view style="height: 10px;"></view>
      </view>
    </view>
  </template>
  <script>
import { exanList } from '../api/api.js';
  export default {
    data() {
      return {
        startTime:'2023.09.09',
        endTime:'2023.09.09',
        indent:'',
        arr:[
        ]
      };
    },
    methods: {
      getList(){
        exanList().then(res=>{
          console.log(res,'题库资料');
          this.arr = res.data.data;
        })
      },
      read(i){
        uni.navigateTo({
          url:`/pagesPlant/index/profileDetail?id=${i.paperId}`
        })
      }
    },
    onLoad() {},
    onShow(){
      this.indent = uni.getStorageSync('pageIndent');
      this.getList();
    }
  };
  </script>
  <style lang="scss">
  .cz{
    display: flex;
    justify-content: center;
    width: 49%;
  }
  .czs{
    padding: 8rpx 20rpx;
    background-color: #4a9b4f;
    color: #fff;
    border-radius: 8rpx;
  }
  .container {
    height: 100vh;
    width: 100vw;
    background: #ffffff;
    color: #000000;
    overflow-y: scroll;
  }
  </style>
  